import axios from 'axios'
export class MaterialRequest{
    public static getFormMaterial():Promise<any> {
        return axios.get('/api/material/form')
    }

    public static getMaterialInstance():Promise<any>{
        const jsonStr = localStorage.getItem('ZT_MATERIAL_INSTANCE');
        if(jsonStr){
            return Promise.resolve(JSON.parse(jsonStr));
        }else{
            return Promise.resolve(null);
        }
    }
}
